#include "BaseMsgReporter.h"

const static int ONE_SECOND = 1000;             //  1秒，通过频率，计算时间间隔

void BaseMsgReporter::SetMsgInfo(const std::string& msgType, int msgLength)
{
    m_msgType = msgType;
    m_msgLength = msgLength;
}

std::string BaseMsgReporter::GetMsgType()
{
    return m_msgType;
}

int BaseMsgReporter::GetMsgLength()
{
    return m_msgLength;
}

void BaseMsgReporter::SetTimeInterval(int Hz)
{
    m_timeInterval = ONE_SECOND / Hz;
}

int BaseMsgReporter::GetTimeInterval()
{
    return m_timeInterval;
}


